package com.manger.model;

import com.manger.common.annotation.excel.Excel;
import com.manger.common.annotation.excel.ExcelExport;
import org.apache.commons.lang.StringUtils;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Project {

    private String debtName; // 案件来源方标识

    private String ignoreFiles;

    private String ignoreDir;

    public String getDebtName() {
        return debtName;
    }

    public void setDebtName(String debtName) {
        this.debtName = debtName;
    }

    public String getIgnoreFiles() {
        return ignoreFiles;
    }

    public void setIgnoreFiles(String ignoreFiles) {
        this.ignoreFiles = ignoreFiles;
    }

    public List<String> getIgnoreFilesList(){
        if(StringUtils.isEmpty(ignoreFiles)){
            return new ArrayList<>();
        }
        return Arrays.asList(ignoreFiles.split(","));
    }

    public String getIgnoreDir() {
        return ignoreDir;
    }

    public void setIgnoreDir(String ignoreDir) {
        this.ignoreDir = ignoreDir;
    }

    public List<String> getIgnoreDirList() {
        if(StringUtils.isEmpty(ignoreDir)){
            return new ArrayList<>();
        }
        return Arrays.asList(ignoreDir.split(","));
    }
}
